import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

  const routes = [
      {
          path: '/',
          component:()=>import('../views/home/Home.vue')
      },
      {
          path: '/content',
          component:()=>import('../views/blogcontent/BlogContent')
      },
      {
          path: '/collection',
          component:()=>import('../views/collection/Collection')
      },
      {
          path: '/message',
          component:()=>import('../views/message/Message')
      },
      {
          path: '/forum',
          component:()=>import('../views/forum/Forum')
      },
      {
          path: '/forumcontent',
          component:()=>import('../views/forumcontent/ForumContent')
      },
      {
          path: '/login',
          component:()=>import('../views/login/Login')
      },
      {
          path: '/register',
          component:()=>import('../views/register/Register')
      },
      {
          path: '/arcontent',
          component:()=>import('../views/articlecontent/ArticleContent')
      },
      {
          path: '/home',
          component:()=>import('../views/home/Home')
      },
      {
          path: '/personalInfo',
          component: ()=>import('../views/personalInfo/PersonalInfo')
      },
      {
          path: '/history',
          component:()=>import('../views/history/History')
      },
      {
          path:'/admin/adlogin',
          component:()=>import('../views/admin/adlogin')
      },
      {
          path:'/admin/adindex',
          component:()=>import('../views/admin/adindex')
      },
      {
          path:'/admin/aduser',
          component:()=>import('../views/admin/aduser')
      },
      {
          path:'/admin/admin/update',
          component:()=>import("../views/admin/adupdate")
      },
      {
          path:'/admin/admessage',
          component:()=>import("../views/admin/admessage")
      },
      {
          path:'/admin/warticle',
          component:()=>import("../views/admin/warticle")
      }
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
